package com.dupf.product.dao.model;

import java.io.Serializable;

public class ProductInfo implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 组织编号
     *
     * @mbg.generated
     */
    private Integer orgId;

    /**
     * 主图
     *
     * @mbg.generated
     */
    private String mainPic;

    /**
     * 标题
     *
     * @mbg.generated
     */
    private String title;

    /**
     * 分类
     *
     * @mbg.generated
     */
    private String category;

    /**
     * 分类编号
     *
     * @mbg.generated
     */
    private String categoryId;

    /**
     * 产品编号
     *
     * @mbg.generated
     */
    private String productNo;

    /**
     * SKU
     *
     * @mbg.generated
     */
    private String sku;

    /**
     * 成本价
     *
     * @mbg.generated
     */
    private Integer costPrice;

    /**
     * 成本价货币单元(1 人名币 2 美元 3 欧元 4 英镑)
     *
     * @mbg.generated
     */
    private Byte costCurUnit;

    /**
     * 销售价
     *
     * @mbg.generated
     */
    private Integer salePrice;

    /**
     * 销售价货币单元(1 人名币 2 美元 3 欧元 4 英镑)
     *
     * @mbg.generated
     */
    private Byte saleCurUnit;

    /**
     * 来源域名
     *
     * @mbg.generated
     */
    private String sourceDomain;

    /**
     * 来源地址
     *
     * @mbg.generated
     */
    private String sourceUrl;

    /**
     * 产品标记(1 重点 2 原创 3 正品 4 A货 5 其他)
     *
     * @mbg.generated
     */
    private Byte productTag;

    /**
     * 状态(1 上架 2 下架 3 待定 4 屏蔽 5 删除)
     *
     * @mbg.generated
     */
    private Byte status;

    /**
     * 发布时间
     *
     * @mbg.generated
     */
    private Long releaseTime;

    /**
     * 采集人
     *
     * @mbg.generated
     */
    private Integer collectUserId;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Long ctime;

    /**
     * 排序
     *
     * @mbg.generated
     */
    private Long orders;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public String getMainPic() {
        return mainPic;
    }

    public void setMainPic(String mainPic) {
        this.mainPic = mainPic;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public Integer getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(Integer costPrice) {
        this.costPrice = costPrice;
    }

    public Byte getCostCurUnit() {
        return costCurUnit;
    }

    public void setCostCurUnit(Byte costCurUnit) {
        this.costCurUnit = costCurUnit;
    }

    public Integer getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(Integer salePrice) {
        this.salePrice = salePrice;
    }

    public Byte getSaleCurUnit() {
        return saleCurUnit;
    }

    public void setSaleCurUnit(Byte saleCurUnit) {
        this.saleCurUnit = saleCurUnit;
    }

    public String getSourceDomain() {
        return sourceDomain;
    }

    public void setSourceDomain(String sourceDomain) {
        this.sourceDomain = sourceDomain;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public Byte getProductTag() {
        return productTag;
    }

    public void setProductTag(Byte productTag) {
        this.productTag = productTag;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Long getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Long releaseTime) {
        this.releaseTime = releaseTime;
    }

    public Integer getCollectUserId() {
        return collectUserId;
    }

    public void setCollectUserId(Integer collectUserId) {
        this.collectUserId = collectUserId;
    }

    public Long getCtime() {
        return ctime;
    }

    public void setCtime(Long ctime) {
        this.ctime = ctime;
    }

    public Long getOrders() {
        return orders;
    }

    public void setOrders(Long orders) {
        this.orders = orders;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orgId=").append(orgId);
        sb.append(", mainPic=").append(mainPic);
        sb.append(", title=").append(title);
        sb.append(", category=").append(category);
        sb.append(", categoryId=").append(categoryId);
        sb.append(", productNo=").append(productNo);
        sb.append(", sku=").append(sku);
        sb.append(", costPrice=").append(costPrice);
        sb.append(", costCurUnit=").append(costCurUnit);
        sb.append(", salePrice=").append(salePrice);
        sb.append(", saleCurUnit=").append(saleCurUnit);
        sb.append(", sourceDomain=").append(sourceDomain);
        sb.append(", sourceUrl=").append(sourceUrl);
        sb.append(", productTag=").append(productTag);
        sb.append(", status=").append(status);
        sb.append(", releaseTime=").append(releaseTime);
        sb.append(", collectUserId=").append(collectUserId);
        sb.append(", ctime=").append(ctime);
        sb.append(", orders=").append(orders);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductInfo other = (ProductInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrgId() == null ? other.getOrgId() == null : this.getOrgId().equals(other.getOrgId()))
            && (this.getMainPic() == null ? other.getMainPic() == null : this.getMainPic().equals(other.getMainPic()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getCategory() == null ? other.getCategory() == null : this.getCategory().equals(other.getCategory()))
            && (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
            && (this.getProductNo() == null ? other.getProductNo() == null : this.getProductNo().equals(other.getProductNo()))
            && (this.getSku() == null ? other.getSku() == null : this.getSku().equals(other.getSku()))
            && (this.getCostPrice() == null ? other.getCostPrice() == null : this.getCostPrice().equals(other.getCostPrice()))
            && (this.getCostCurUnit() == null ? other.getCostCurUnit() == null : this.getCostCurUnit().equals(other.getCostCurUnit()))
            && (this.getSalePrice() == null ? other.getSalePrice() == null : this.getSalePrice().equals(other.getSalePrice()))
            && (this.getSaleCurUnit() == null ? other.getSaleCurUnit() == null : this.getSaleCurUnit().equals(other.getSaleCurUnit()))
            && (this.getSourceDomain() == null ? other.getSourceDomain() == null : this.getSourceDomain().equals(other.getSourceDomain()))
            && (this.getSourceUrl() == null ? other.getSourceUrl() == null : this.getSourceUrl().equals(other.getSourceUrl()))
            && (this.getProductTag() == null ? other.getProductTag() == null : this.getProductTag().equals(other.getProductTag()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getReleaseTime() == null ? other.getReleaseTime() == null : this.getReleaseTime().equals(other.getReleaseTime()))
            && (this.getCollectUserId() == null ? other.getCollectUserId() == null : this.getCollectUserId().equals(other.getCollectUserId()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getOrders() == null ? other.getOrders() == null : this.getOrders().equals(other.getOrders()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrgId() == null) ? 0 : getOrgId().hashCode());
        result = prime * result + ((getMainPic() == null) ? 0 : getMainPic().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getCategory() == null) ? 0 : getCategory().hashCode());
        result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
        result = prime * result + ((getProductNo() == null) ? 0 : getProductNo().hashCode());
        result = prime * result + ((getSku() == null) ? 0 : getSku().hashCode());
        result = prime * result + ((getCostPrice() == null) ? 0 : getCostPrice().hashCode());
        result = prime * result + ((getCostCurUnit() == null) ? 0 : getCostCurUnit().hashCode());
        result = prime * result + ((getSalePrice() == null) ? 0 : getSalePrice().hashCode());
        result = prime * result + ((getSaleCurUnit() == null) ? 0 : getSaleCurUnit().hashCode());
        result = prime * result + ((getSourceDomain() == null) ? 0 : getSourceDomain().hashCode());
        result = prime * result + ((getSourceUrl() == null) ? 0 : getSourceUrl().hashCode());
        result = prime * result + ((getProductTag() == null) ? 0 : getProductTag().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getReleaseTime() == null) ? 0 : getReleaseTime().hashCode());
        result = prime * result + ((getCollectUserId() == null) ? 0 : getCollectUserId().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getOrders() == null) ? 0 : getOrders().hashCode());
        return result;
    }
}